package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.BrandCategory;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class BrandCategoryMapperTets {
   @Autowired
   BrandCategoryMapper mapper;
   @Test
    void testInsert(){
       BrandCategory brandCategory=new BrandCategory();
       brandCategory.setBrandId(1L);
       brandCategory.setCategoryId(3L);
       int row=mapper.insert(brandCategory);
       System.out.println("row = "+row);
   }
   @Test
   void testdeleteById(){
      Long id=9L;
      int row= mapper.deleteById(id);
      System.out.println("row = "+row);
   }
}
